<%@ page import="java.util.*" pageEncoding="utf-8" %>
<%@include file="/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<fmt:bundle basename="res">
<head>
    <meta charset="utf-8">
    <title><fmt:message key='zhht' /></title>
    <jsp:include page="/WEB-INF/commons/commons-header.jsp" flush="true"/>
    <style>
        html {
            background: #fff;
        }

        /*.layui-form-label {*/
        /*    width: 180px;*/
        /*}*/
    </style>
</head>

<body>

<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
    <div class="layui-tab-content" style="height: 100%;">
        <div class="layui-tab-item layui-show">
            <div class="layui-container">
                <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
                    <form:form commandName="order" method="post" id="form" class="layui-form">

                        <input type="hidden" name="_method" value="${_method}">
                        <form:hidden path="id"/>


                        <div class="layui-form-item">
                            <label class="layui-form-label"><b style="color:red">*</b> <fmt:message key='zzbz' /></label>
                            <div class="layui-form-mid layui-word-aux">
                                ${order.bankCardPayNote}
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label"><b style="color:red">*</b> <fmt:message key='zzpz' /></label>
                            <div class="layui-form-mid layui-word-aux">
                                <img style="width:100px;" class="preview" src="${store_domain}/uploads/${order.bankCardPayPhoto}" />
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label"><fmt:message key='shzt' /></label>
                            <div class="layui-form-mid layui-word-aux">
                                <c:choose>
                                    <c:when test="${order.status eq 9}"><fmt:message key='dshenh' /></c:when>
                                    <c:when test="${order.status eq 2}"><fmt:message key='shtg' /></c:when>
                                    <c:when test="${order.status eq 6}"><fmt:message key='shbtg' /></c:when>
                                </c:choose>
                            </div>
                        </div>


                        <div class="layui-form-item">
                            <label class="layui-form-label"> <fmt:message key='shjg' /></label>
                            <div class="layui-input-inline" style="width:70%;">
                                <input type="radio" name="status" lay-filter="status" lay-verify="required" value="2" title="<fmt:message key='shtg' />" <c:if test="${brand.status eq 2}">checked="checked"</c:if>/>
                                <input type="radio" name="status" lay-filter="status" lay-verify="required" value="6" title="<fmt:message key='shbtg' />" <c:if test="${brand.status eq 6}">checked="checked"</c:if>/>
                            </div>
                        </div>


                        <div class="layui-form-item" style="display: none;">
                            <label for="" class="layui-form-label"></label>
                            <div class="layui-input-inline">
                                <input type="button" value="<fmt:message key='qd' />" lay-submit id="submit" lay-filter="submit" class="layui-btn">
                            </div>
                        </div>
                    </form:form>
                </div>
            </div>
        </div>
    </div>
</div>


<script>

    layui.use(['form'], function () {

        var form = layui.form;

        form.on('submit(submit)', function (data) {

            $("#form").ajaxSubmit({
                success: function (res) {
                    if (res.status) {
                        var index = parent.layer.getFrameIndex(window.name);
                        parent.layer.close(index);
                        parent.$("#search").click();
                    } else {
                        layer.alert(res.message);
                    }
                }
            });
        });
    });
</script>
</body>
</fmt:bundle>
</html>